<html>
    <head><title>Sistem Informasi Kependudukan</title>
        <link href="<?php echo base_url('assets/css/style.css'); ?>" rel="stylesheet" type="text/css" />
        <link href="<?php echo base_url('assets/css/form.css'); ?>" rel="stylesheet" type="text/css" />
        <link href="<?php echo base_url('assets/images/sik.ico'); ?>" rel="shortcut icon" type="image/x-icon">
        <script src="<?php echo base_url('assets/js/realtime.js'); ?>" type="application/javascript"></script>
        <script language="javascript" src="<?php echo base_url('assets/js/jquery.js'); ?>"></script>
        <script language="javascript" src="<?php echo base_url('assets/js/jquery2.js'); ?>"></script>
        <style type="text/css">
            <!--
            .style1 {color: #F0F0F0}
            .style2 {font-size: 24px}
            -->
        </style>
        <script language="JavaScript">
            var text = "Desa Gunungsari - Profesional dan Bertanggungjawab - ";
            var speed = 700;
            var refresh = null;
            function move() {
                document.title = text;
                text = text.substring(1, text.length) + text.charAt(0);
                refresh = setTimeout("move()", speed);
            }
            move();
        </script>

    </head>
    <body>
        <?php
        $data_login = $this->session->userdata('login');
        $level = $data_login['level'];
        ?>
        <div id="list"></div>

        <div id="box_dasar">
            <div class="style1" id='bawah_header'>
                <div align="center" class="style2">
                    <p>Sistem Informasi Administrasi Kependudukan <br> 
                        Desa Gunungsari, Kecamatan Arjosari, Kabupaten Pacitan 63581</p>
                </div>
            </div>
            <div id="content">	
                <div id="kiri">
                    <div id="pages">
                        <nav>
                            <div id="kanan">
                                <!--                                <div id="nav_">MENU</div>-->
                                <!--<div class="btn btn-mini btn-block" id="reset" name="reset" type="reset"></div><h4><div align="center"><span id="servertime"></span></div></h4></button>-->
                                <!--<div id="nav_"></div><h4><div align="center"><span id="servertime"></span></div></h4>-->
                                <div align="center"><h4>Waktu hari ini : <br><div id="servertime"></div></h4></div>
                                <br>
                            </div>
                            <br>
                            <br>
                            <ul>

                                <br>
                                <li><a href="<?php echo base_url('halaman'); ?>"><img src="<?php echo base_url('assets/images/logo.png'); ?>" style="margin-left:-15px; margin-right:15px;" class="menu">Beranda</a></li>
                                <!--Data Master-->
                                <?php if ($level == 'admin'): ?>
                                    <li class="sub"><img src="<?php echo base_url('assets/images/logo.png'); ?>" align="absmiddle" style="position:absolute; margin-right:50px;"><a href="#">Data Master</a>
                                        <ul>
                                            <li class="sub2"><a href="<?php echo base_url('admin/pengguna/tampil'); ?>" class="listmenu">Pengguna</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/pengguna/form_pengguna'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/agama/tampil'); ?>" class="listmenu">Agama</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/agama/form_agama'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/gol_darah/tampil'); ?>" class="listmenu">Golongan Darah</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/gol_darah/form_gol_darah'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/jenis_kelahiran/tampil'); ?>" class="listmenu">Jenis Kelahiran</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/jenis_kelahiran/form_jenis_kelahiran'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/jenis_kelamin/tampil'); ?>" class="listmenu">Jenis Kelamin</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/jenis_kelamin/form_jenis_kelamin'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/jenis_pindah/tampil'); ?>" class="listmenu">Jenis Pindah</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/jenis_pindah/form_jenis_pindah'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/kat_pindah/tampil'); ?>" class="listmenu">Kategori Pindah</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/kat_pindah/form_kat_pindah'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/kewarganegaraan/tampil'); ?>" class="listmenu">Kewarganegaraan</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/kewarganegaraan/form_kewarganegaraan'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/pekerjaan/tampil'); ?>" class="listmenu">Pekerjaan</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/pekerjaan/form_pekerjaan'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/pendidikan/tampil'); ?>" class="listmenu">Pendidikan</a>

                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/pendidikan/form_pendidikan'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/propinsi/tampil'); ?>" class="listmenu">Propinsi</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/propinsi/form_propinsi'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/status_kawin/tampil'); ?>" class="listmenu">Status Perkawinan</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/status_kawin/form_status_kawin'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                            <li class="sub2"><a href="<?php echo base_url('admin/status_keluarga/tampil'); ?>" class="listmenu">Status Keluarga</a>
                                                <ul>
                                                    <li><a href="<?php echo base_url('admin/status_keluarga/form_status_keluarga'); ?>" class="listmenu">Tambah</a></li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </li>
                                <?php endif; ?>

                                <!--Data Umum-->
                                <?php if ($level == 'admin' || $level == 'kaur'): ?>
                                    <li class="sub"><img src="<?php echo base_url('assets/images/logo.png'); ?>" align="absmiddle" style="position:absolute; margin-right:50px;"><a href="#">Data Umum</a>
                                        <ul>
                                            <li><a href="<?php echo base_url('kk/tampil'); ?>"  class="listmenu">Kartu Keluarga</a></li>
                                            <li><a href="<?php echo base_url('penduduk/tampil'); ?>"  class="listmenu">Penduduk</a></li>
                                            <li><a href="<?php echo base_url('kelahiran/tampil'); ?>"  class="listmenu">Kelahiran</a></li>
                                            <li><a href="<?php echo base_url('kematian/tampil'); ?>"  class="listmenu">Kematian</a></li>
                                            <li><a href="<?php echo base_url('pindah_datang/tampil'); ?>" class="listmenu">Pendatang</a></li>
                                            <li><a href="<?php echo base_url('pindah_pergi/tampil'); ?>" class="listmenu">Pindah</a></li>
                                        </ul>
                                    </li>
                                <?php endif; ?>

                                <!--Tambah Data-->
                                <?php if ($level == 'admin' || $level == 'kaur'): ?>
                                    <li class="sub"><img src="<?php echo base_url('assets/images/logo.png'); ?>" align="absmiddle" style="position:absolute; margin-right:50px;"><a href="#">Tambah Data</a>
                                        <ul>
                                            <li><a href="<?php echo base_url('kk/form_kk'); ?>"  class="listmenu">Kartu Keluarga</a></li>
                                            <li><a href="<?php echo base_url('penduduk/form_penduduk'); ?>"  class="listmenu">Penduduk</a></li>
                                            <li><a href="<?php echo base_url('kelahiran/form_kelahiran'); ?>"  class="listmenu">Kelahiran</a></li>
                                            <li><a href="<?php echo base_url('kematian/form_kematian'); ?>"  class="listmenu">Kematian</a></li>
                                            <li><a href="<?php echo base_url('pindah_datang/form_pindahdatang'); ?>" class="listmenu">Pendatang</a></li>
                                            <li><a href="<?php echo base_url('pindah_pergi/form_pindahpergi'); ?>" class="listmenu">Pindah</a></li>
                                        </ul>
                                    </li>
                                <?php endif; ?>

                                <!--Laporan-->
                                <?php if ($level == 'admin' || $level == 'kades' || $level == 'kaur'): ?>
                                    <li class="sub"><img src="<?php echo base_url('assets/images/logo.png'); ?>" align="absmiddle" style="position:absolute; margin-right:50px;"><a href="#">Laporan</a>                                        
                                        <ul>
                                            <!--Cari Data-->
                                            <li class="sub2"><a href="#" class="listmenu">Cari Data</a>
                                                <ul>
                                                    <li class="sub2"><a href="#" class="listmenu">Kartu Keluarga</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('kk/cari_nokk'); ?>" class="listmenu">Per Nomor KK</a></li>
                                                            <li><a href="<?php echo base_url('kk/cari_dusun'); ?>" class="listmenu">Per Dusun</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#" class="listmenu">Penduduk</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('penduduk/cari_nik'); ?>" class="listmenu">Per NIK</a></li>
                                                            <li><a href="<?php echo base_url('penduduk/cari_jk'); ?>" class="listmenu">Per Jenis Kelamin</a></li>                                                
                                                            <li><a href="<?php echo base_url('penduduk/cari_pendidikan'); ?>" class="listmenu">Per Pendidikan</a></li>
                                                            <li><a href="<?php echo base_url('penduduk/cari_goldarah'); ?>" class="listmenu">Per Golongan Darah</a></li>
                                                            <li><a href="<?php echo base_url('penduduk/cari_agama'); ?>" class="listmenu">Per Agama</a></li>
                                                            <li><a href="<?php echo base_url('penduduk/cari_pekerjaan'); ?>" class="listmenu">Per Pekerjaan</a></li>
                                                            <li><a href="<?php echo base_url('penduduk/cari_statuskawin'); ?>" class="listmenu">Per Status Perkawinan</a></li>
                                                            <li><a href="<?php echo base_url('penduduk/cari_statuskeluarga'); ?>" class="listmenu">Per Status Dalam Keluarga</a></li>
                                                            <!--<li><a href="<?php echo base_url('penduduk/cari_kategoriumur'); ?>" class="listmenu">Per Kategori Umur</a></li>-->

                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#" class="listmenu">Kelahiran</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('kelahiran/cari_form'); ?>" class="listmenu">Per Form</a></li>
                                                            <li><a href="<?php echo base_url('kelahiran/cari_jk'); ?>" class="listmenu">Per Jenis Kelamin</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#" class="listmenu">Kematian</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('kematian/cari_nik'); ?>" class="listmenu">Per NIK</a></li>
                                                            <li><a href="<?php echo base_url('kematian/cari_jk'); ?>" class="listmenu">Per Jenis Kelamin</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#"  class="listmenu">Pendatang</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('pindah_datang/cari_nik'); ?>" class="listmenu">Per NIK</a></li>
                                                            <li><a href="<?php echo base_url('pindah_datang/cari_nokk'); ?>" class="listmenu">Per No. KK</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#"  class="listmenu">Pindah </a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('pindah_pergi/cari_nik'); ?>" class="listmenu">Per NIK</a></li>
                                                            <li><a href="<?php echo base_url('pindah_pergi/cari_nokk'); ?>" class="listmenu">Per No. KK</a></li>
                                                        </ul>
                                                    </li>
                                                </ul>
                                            </li>


                                            <!--Cetak Data-->
                                            <li class="sub2"><a href="#" class="listmenu">Cetak Data</a>
                                                <ul>
                                                    <li class="sub2"><a href="#" class="listmenu">Kartu Keluarga</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('kk/cetak_nokk'); ?>" class="listmenu">Per Nomor KK (cetak)</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#" class="listmenu">Penduduk</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('penduduk/cetak_ktp'); ?>" class="listmenu">Formulir KTP</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#" class="listmenu">Kelahiran</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('kelahiran/cetak_suratketerangan'); ?>" class="listmenu">Per Form (cetak)</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#" class="listmenu">Kematian</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('kematian/cetak_suratketerangan'); ?>" class="listmenu">Per NIK (cetak)</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#"  class="listmenu">Pendatang</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('pindah_datang/cari_nik'); ?>" class="listmenu">Per NIK (cetak)</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#"  class="listmenu">Pindah</a>
                                                        <ul>
                                                            <li><a href="<?php echo base_url('pindah_pergi/cari_nik'); ?>" class="listmenu">Per NIK (cetak)</a></li>
                                                        </ul>
                                                    </li>
                                                    <li class="sub2"><a href="#"  class="listmenu">Laporan Bulanan</a>
                                                </ul>
                                            </li>
                                            <!--</ul>-->

                                        </ul>
                                    </li>
                                <?php endif; ?>
                                <li><a href="<?php echo base_url('login'); ?>"><img src="<?php echo base_url('assets/images/logo.png'); ?>" style="margin-left:-15px; margin-right:15px;">Logout</a></li>
                                <!--<div id="kanan">
                                    <div id="nav_">lalala</div>
                                    <div id="pages"></div> -->
                        </nav>
                    </div>
                </div>	
                <div id="tengah">
                    <div id="nav_tengah">&nbsp;</div>
                    <div id="pages_tengah">
                        <?php echo $body; ?>
                    </div>
                </div>
            </div>
            <div id="footer" align="center">
                <div align="center">Halaman dimuat dalam <strong>{elapsed_time}</strong> detik</div>
                Sistem Informasi Desa Gunungsari
                <br>&copy;  2014
            </div>
        </div>
    </body>
</html>